<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-payRecords-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">商户号，对应appid：</label>
				<div class="col-sm-8">
					<input id="appid" name="appid" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">实际⽀付⾦额（单位：分）：</label>
				<div class="col-sm-8">
					<input id="fee" name="fee" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">透传参数，对应于transp：</label>
				<div class="col-sm-8">
					<input id="orderid" name="orderid" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">我司⽣成的订单流⽔号：</label>
				<div class="col-sm-8">
					<input id="pdorderid" name="pdorderid" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">外部订单流⽔号（如⽀付宝⽣成的流⽔号）：</label>
				<div class="col-sm-8">
					<input id="chorderid" name="chorderid" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">⾦额单位，固定为"fen"：</label>
				<div class="col-sm-8">
					<input id="unit" name="unit" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">状态，success：</label>
				<div class="col-sm-8">
					<input id="status" name="status" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">⽀付时间（格式：yyyy-MM-dd HH:mm:ss）：</label>
				<div class="col-sm-8">
					<input id="time" name="time" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">String ⽀付⽅式,如"⽀付宝wap"：</label>
				<div class="col-sm-8">
					<input id="paytype" name="paytype" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">String md5(appid + orderid + fee + unit + status + paytype + key)：</label>
				<div class="col-sm-8">
					<input id="sign" name="sign" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<div class="form-control-static col-sm-offset-9">
					<button type="submit" class="btn btn-primary">提交</button>
					<button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "module/payRecords"
		$("#form-payRecords-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			submitHandler: function(form) {
				$.operate.save(prefix + "/add", $('#form-payRecords-add').serialize());
			}
		});
	</script>
</body>
</html>
